package org.hardcode.rpc.protocol;

import org.hardcode.rpc.protocol.header.RpcHeader;

import java.io.Serializable;

public class RpcProtocol <T> implements Serializable {
    private static final long serialVersionUID = 1566626382419710750L;

    //消息头
    private RpcHeader header;

    //消息体
    private  T  body;

    public RpcHeader getHeader() {
        return header;
    }

    public void setHeader(RpcHeader header) {
        this.header = header;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }
}
